/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package chatsystem.observable;

/**
 *
 * @author Nargisse
 */
public class Conversation {
    
    private String user;
    private String message;
    private boolean isLocalUserConv;
    private boolean isErrorMessage;
    
    public Conversation(String user, String message, boolean isLocalUserConv, boolean isErrorMessage){
        this.user = user;
        this.message = message;
        this.isLocalUserConv = isLocalUserConv;
        this.isErrorMessage = isErrorMessage;
    }
    
    
    public String getUserNameFromCov(){
        return this.user;
    }
    
    public String getMessFromComv(){
        return this.message;
    }
    
    public boolean getIsLocalUserConv(){
        return this.isLocalUserConv;
    }

    public boolean getIsErrorMessage() {
        return isErrorMessage;
    }
    
    
    @Override
     public String toString(){
        return user+" a ecrit: "+message;
    }
    
}
